package com.ruoyi.search.client;

import com.ruoyi.common.core.web.domain.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

@FeignClient("ruoyi-cms")
public interface CmsClient {

    @GetMapping("/goods/listAll")
    List<Map> list();

    @GetMapping("/goods/listByTime")
    List<Map> listByTime(String time);


    @GetMapping("/brand/get/{brandName}")
    Map get(@PathVariable(value = "brandName") String brandName);


    @GetMapping("/category/getTemplateId")
    Long getTemplateId(@RequestParam(value = "name") String name);

    @GetMapping(value = "/template/{id}")
    AjaxResult getInfo(@PathVariable("id") Long id);


}
